package com.cn.goodsadmin.service;

import com.cn.goodsadmin.po.Discard;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("discardService")
public class DisCardService extends BaseService{

    public void save(Discard discard)throws Exception{
        disCardDao.save(discard);
    }

    public void  update(Discard discard) throws Exception{
        disCardDao.update(discard);
    }

    public void delete(Discard discard) throws Exception{
        disCardDao.delete(discard);
    }

    public List<Discard> findAllDisCard(int appid) throws Exception{
        return disCardDao.findAllDisCard(appid);
    }

    public void  deleteDisCard(Discard discard)throws Exception{
         disCardDao.delete(discard);
    }

}
